package com.iwhalecloud.bss.kite.cucc.service.attr.handler;

import com.iwhalecloud.bss.kite.manager.inst.KiteInst;
import com.iwhalecloud.bss.kite.service.attr.AttrData;
import com.iwhalecloud.bss.kite.service.attr.handler.AbstractAttrHandler;

public class LocalNonModifyAttrHandler extends AbstractAttrHandler<KiteInst, AttrData> {

//    @Override
//    public void after(KiteAttr attr, KiteInst inst, AttrData data) {
//
//        Map<String, Object> extParams = ContextUtil.getLoginInfo().getUserInfo().getExtParams();
//        if (KiteStringUtils.equals(data.getServiceOfferId(), LocalServiceOfferConsts.SERVICE_OFFER_ORDER_SIGN)) {
//            attr.setIsEdit(KeyConsts.IFTRUE_F);
//        }
//        List<String> goodsNodeId = ProdCateUtil.getCateIdByCode(ProdCateUtil.SDH_CODE, ProdCateUtil.YTW_CODE);
//        if (KiteStringUtils.equals(data.getServiceOfferId(),"1") && (Objects.nonNull(extParams) && extParams.containsKey("nodeCode"))) {
//            String nodeCode = MapUtils.getString(extParams,"nodeCode");
//            String goodsId = MapUtils.getString(extParams,"goodsNodeId");
//            if("OrderResubmit".equals(nodeCode) && goodsNodeId.contains(goodsId)){
//                attr.setIsEdit(KeyConsts.IFTRUE_T);
//                IOperateSceneInstService iOperateSceneInstService = SpringUtil.getBean(IOperateSceneInstService.class);
//                if (KiteStringUtils.isNotBlank(goodsId)) {
//                    iOperateSceneInstService.putExtParameter(data.getSceneInstId(), "goodsId", goodsId);
//                }
//            }
//        }
//        super.after(attr, inst, data);
//    }
}
